package com.zhuiYun.project.api.seckill.service;

import com.zhuiYun.project.api.commodity.model.CommodityModel;
import com.zhuiYun.project.api.seckill.entity.Seckill;
import com.zhuiYun.project.api.seckill.model.SeckillModel;
import com.zhuiYun.project.common.errorCode.CommonException;
import com.zhuiYun.project.common.response.CommonResult;
import com.zhuiYun.project.util.pageUtil.PageRequest;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

/**
 * @ClassName SeckillService
 * @Description TODO
 * Author 高
 * @Date 2023/4/11 10:15
 * @Version 1.0
 **/
public interface SeckillService {
    /*
    * @Author 高哲
    * @Description
    * @Date 2023/4/11 13:38
    * @Param
    * 查询秒杀信息
    */
    List<Seckill> getSeckillByPage(Seckill seckill);
    /*
    * @Author 高哲
    * @Description
    * @Date 2023/4/12 10:10
    * @Return
    * @Param
    * 新增设置秒杀信息
    */
    int SeckillAdd( Seckill seckill) throws CommonException;
    /*
     * @Author 高哲
     * @Description
     * @Date 2023/4/12 10:10
     * @Return
     * @Param
     * 修改秒杀信息
     */
    int SeckillUpdate(Seckill seckill) throws CommonException;
    /*
     * @Author 高哲
     * @Description
     * @Date 2023/4/12 15:10
     * @Return
     * @Param
     * 删除下架商品
     */
    CommonResult delSeckillById(Integer id) throws CommonException;

}
